// router.js
import { createRouter, createWebHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    redirect:'/fault-injection',
    component: () => import(/* webpackChunkName: "about" */ '../view/Home.vue'), // 页面组件
    name: 'Home', // 路由名称
  },
  {
    path: '/fault-injection',
    component: () => import(/* webpackChunkName: "about" */ '../view/fault-injection/Index.vue'), // 页面组件
    name: 'Fault-injection', // 路由名称
  },
  // 其他路由配置
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
